package com.rqbl.mapper;

import com.rqbl.entity.Bar;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bruce
 * @since 2024-07-19
 */
@Mapper
public interface BarMapper {
    List<Bar> selectAllBarPage(Integer page, Integer size);

    Integer selectAllBarCount();

    Integer insertBar(Bar bar);

    Bar selectBarById(Integer bid);

    List<Bar> selectAllBarByUid(Integer uid);

    Integer updateBarAnnounce(Integer bid, String announce);

    Integer updateBarImgByBid(Integer bid, String url);

    Integer updateBarInfo(Integer bid, String bname, String bdescribe);

}
